//============================================================================
// Name        : Assignmet3.cpp
// Author      : Thada Pipatchaorenkij 49270325
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "Complex.h"

using namespace std;

void print(Complex);

/**
 * main function to test Complex class
 */
int main() {
	Complex a(1,2), b(1,2);
	print(a);
	print(b);
	Complex c = a + b;
	print(c);
	Complex d = a - b;
	print(d);
	Complex e = a * b;
	print(e);

	if (a == b){
		cout << "a and b are the same";
	}
	else {
		cout << "a and b are not the same";
	}
	return 0;
}

/**
 * print method to print Complex
 * @param c Complex type
 */
void print(Complex c){
	cout << c.getReal() << " + " << c.getImaginary() << " * i" << endl;
}
